package com.whiteape.book.ui.activity;

import android.content.Intent;
import android.os.Handler;

import com.gyf.immersionbar.ImmersionBar;
import com.whiteape.book.R;
import com.whiteape.book.ui.base.BaseActivity;

public class WelcomeActivity extends BaseActivity {

    Handler mHandler = new Handler();
    @Override
    protected int getContentId() {
        return R.layout.activity_welcome;
    }

    @Override
    protected void initEvent() {
        ImmersionBar.with(this).init();
        super.initEvent();
        mHandler.postDelayed(()-> {
            startActivity(new Intent(this, MainActivity.class));
            finish();
        }, 1000);
    }
}
